import requests, json, datetime, time

# Authorizations = "eyJhbGciOiJIUzUxMiJ9.eyJ1aWQiOjE4MzAxODU4OSwiZXhwIjoxNzE3NjYwOTQ5fQ.w4w-yDGtKFE3tgnFDRqhHHfepfj0w_ZmyOi8jvKJl2I3jwxmGf2MG4vYBaWXvnjTnr0auADCW_eHphUVM_92PA"
Authorizations = [
    "eyJhbGciOiJIUzUxMiJ9.eyJ1aWQiOjE4Mjk0OTU0MywiZXhwIjoxNzE4NDM4Mzg4fQ.q9FXA3SdGuX464Q6sCJcFiMpXYfwKI_BcRJAW7R6rgZnzfq-w8ucVbTSPG9onj0HdCAsQznhMYHpDh6GxqTxVQ",
    "eyJhbGciOiJIUzUxMiJ9.eyJ1aWQiOjE4MzAxODU4OSwiZXhwIjoxNzE4NDM4NTYzfQ.dbjx_9IfxoKZPlhQuS0PqD2csdeRESugqSUw2VrUa5RpjLualrnKatjISf5vhW80Jez4F-BoCLGwef82RkNxWA",
    "eyJhbGciOiJIUzUxMiJ9.eyJ1aWQiOjE2OTQ4NDM0MSwiZXhwIjoxNzE4NDM3OTU2fQ.LpRdYGAB0zVCnIXYprJnIBDyAOU8RsHyB0o_9Uf9TOkAmU5SBykc8ZlaFi9BvzE2PHcopEfRGQwOQuskk3-BqA",
    "eyJhbGciOiJIUzUxMiJ9.eyJ1aWQiOjE2ODc5MjUyNCwiZXhwIjoxNzE4MzQ3NTQ4fQ.1tgFUNzUEX6bJuRud3fMDvYzOtW39lWSJ7eRmwvZIWR-VWdwYMht30LnV5Ezsz-sr-mehlt2WIcMo3OWDfaQzg"
]
activityId = 2405280248609345
for Authorization in Authorizations:
    headers = {
                "Host": "apipro.qunjielong.com",
                "Connection": "keep-alive",
                "device-type": "10",
                "mini-route": "pro/pages/generate-order/generate-order",
                "Authorization": Authorization,
                "uid": "182893922",
                "companyId": "190",
                "scene-flow": "pro/pages/generate-order/generate-order,e74e9033d58c99ee377069c998039a2b",
                "client-version": "5.5.83",
                "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 MicroMessenger/7.0.20.1781(0x6700143B) NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF WindowsWechat(0x63090a13) XWEB/9115",
                "Content-Type": "application/json",
                "xweb_xhr": "1",
                "appid": "wx059cd327295ab444",
                "sceneCode": "1007",
                "version": "3.0.0",
                "Accept": "*/*",
                "Sec-Fetch-Site": "cross-site",
                "Sec-Fetch-Mode": "cors",
                "Sec-Fetch-Dest": "empty",
                "Referer": "https://servicewechat.com/wx059cd327295ab444/1784/page-frame.html",
                "Accept-Encoding": "gzip, deflate, br",
                "Accept-Language": "zh-CN,zh;q=0.9"
            }


    # participator_fill_content = "https://apipro.qunjielong.com/activity-accessory/activity_input/participator_fill_content?actId={}".format(
    #             activityId)
    participator_fill_content = "https://apipro.qunjielong.com/order-cert/api/mina/user-order/query_order_personal_home_page?page=1&pageSize=1"
    proxies = {"http": None, "https": None}
    s_time = time.time()
    res = requests.post(participator_fill_content, data=json.dumps({}), headers=headers, proxies=proxies)
    print(Authorization + " 时间：", time.time() - s_time, res.text)
    # print(Authorization, res.text)
    # s_time = time.time()
    time.sleep(0.5)
    # print(Authorization + " 时间：", time.time() - s_time)
    # js = res.json()
    # print(json.dumps(js, indent=4, ensure_ascii=False, sort_keys=True))


